<template>
	<view class="uni-padding-wrap">
		<navigator url="../../form/form" class="inputIn">员工健康打卡</navigator>
		<view class="resultInfo">
			根据您提供的信息，初步筛查结果建议为：
			<view class="resultTxt">{{result}}</view>
		</view>
		<view class="uni-form-item">
			以上结果为自动筛查建议，最终结果以企业相关负责人建议为准。
		</view>
	</view>
</template>

<style>
	.resultInfo {
		font-size: 16px;
	}
	.resultTxt {
		color: red;
		font-size: 16px;
	}
	.inputIn {
		text-align:right;
		top: 10rpx;
		bottom: 30px;
		right: 30rpx;
		color: #007aff;
	}
	.uni-form-item{
		font-size: 13px;
		color:#666666;
		margin-top: 0px;
	}

	.action-row {
		display: flex;
		flex-direction: row;
		justify-content: center;
	}

	.action-row navigator {
		color: #007aff;
		padding: 0 10px;
	}
</style>
<script>
	import { adviceTxt } from '../../../common/hvl-const.js'
	export default {
		data() {
			return {
				result: ''
			}
		},
		onLoad: function(option) {
			console.log(option.advice);
			this.result = adviceTxt[option.advice] || '暂无建议';
		}
	}
</script>
